<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
    <head>
            <meta charset="utf-8">
            <title>系统提示</title>
            <meta http-equiv="Content-type" content="text/html; charset=utf-8">
            <meta http-equiv="X-UA-Compatible" content="IE=edge">
            <meta http-equiv="Cache-Control" content="no-transform" />
            <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
            <meta name="apple-mobile-web-app-status-bar-style" content="black">
            <meta name="renderer" content="webkit">
            <!--uc浏览器判断到页面上文字居多时，会自动放大字体优化移动用户体验。添加以下头部可以禁用掉该优化-->
            <meta name="wap-font-scale" content="no">
            <meta content="telephone=no" name="format-detection"/>
            <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
            <link rel="stylesheet" type="text/css" href="/majiang/Public/home/css/mian.css"/>
            <script type="text/javascript" src="/majiang/Public/home/js/jquery-1.10.2.min.js"></script>
            <script src="/majiang/Public/home/js/html5.js" type="text/javascript" charset="utf-8"></script>
            <script>
            	 (function (doc, win) {
					var docEl = doc.documentElement,
					resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',         
					recalc = function () {
					  var clientWidth = docEl.clientWidth;
					  <!--
					  /*自加*/
					  clientWidth = document.documentElement ? document.documentElement.clientWidth : document.body.clientWidth;
					  if (clientWidth > 720) clientWidth = 720;
					  /*自加*/
					  -->
					  if (!clientWidth) return;
					  docEl.style.fontSize = 20 * (clientWidth / 720) + 'px';
					};
					  if (!doc.addEventListener) return;
					  win.addEventListener(resizeEvt, recalc, false);
					  doc.addEventListener('DOMContentLoaded', recalc, false);
				})(document, window);
            </script>            
			<style>
				.pd_t100{ padding-top:5rem;}
            	.li_content{ width:100%;}
				.li_cdwc{ width:100%; padding:4rem 1.25rem 0;}
				.li_cdwc h4{ text-align:center; font-size:1.8rem; color:#363636; font-family:'SourceHanSansCN-Regular';}
				.li_cdwc i{ display:block; width:7.1rem; height:7.1rem; margin:0 auto; margin-top:2.25rem; overflow:hidden;}
				.li_cdwc i img{ width:100%; display:block;}
				.li_cdwc p{ margin-top:3rem; padding-left:6.1rem; padding-right:3.75rem; font-size:1.3rem; color:#a4a4a4; font-family:'SourceHanSansCN-Regular'; line-height:2.5rem;}
				.li_cdwc a{ display:block; width:100%; height:4rem; line-height:4rem; text-align:center; color:#fff; border-radius:0.9rem; background:#0096ff; font-size:1.5rem; font-family:'SourceHanSansCN-Medium'; font-weight:bold; margin-top:4rem;}
				.li_czcg p{ text-align:center; padding:0;}
            </style>
    </head>
    
    <body>
    	<div class="box">
            <header class="head">
            	<a href="<?php echo U('index/index');?>"></a>
                <h4>系统提示</h4>
            </header>
            <div class="li_content pd_t100">
            	<div class="li_cdwc li_czcg">
                    <h4><?php echo ($msg); ?></h4>
                    <i><img src="/majiang/Public/home/images/li_ico-dh1.png"></i>
                    <p>页面自动跳转等待时间： <b id="wait"><?php echo ($wait); ?></b></p>
					<a id="href" href="<?php echo ($url); ?>">返回</a>
                </div>
            </div>
        </div>
    </body>
</html>
<script type="text/javascript">
	(function(){
	var wait = document.getElementById('wait'),href = document.getElementById('href').href;
	var interval = setInterval(function(){
		var time = --wait.innerHTML;
		if(time <= 0) {
			//location.href = href;
			clearInterval(interval);
		};
	}, 1000);
	})();
</script>